package top.eggcode.modules.log.service;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import top.eggcode.component.query.model.PageList;
import top.eggcode.modules.log.model.LoginLogEntity;
import top.eggcode.modules.log.model.LoginLogQuery;
import top.eggcode.modules.log.store.LoginLogRepository;
import top.eggcode.modules.log.store.LoginLogStore;
import top.eggcode.base.BaseMarkServiceImpl;

/**
 * Title:
 * Description: TODO
 * Date: 2021/5/25 21:13
 *
 * @author JiaQi Ding
 * @version 1.0
 */
@Slf4j
@Transactional(rollbackFor = Exception.class)
@AllArgsConstructor
@Service
public class LoginLogService extends BaseMarkServiceImpl<LoginLogEntity> {

    private final LoginLogRepository selfRepository;

    private final LoginLogStore selfAccessor;


    public PageList<LoginLogEntity> page(LoginLogQuery query) {
        return selfAccessor.page(query);
    }
}
